for (id in args) {
  lib.dbUpdate('update stock_in set `status` = 0 where id in (?) ', args[id].toString());
}

1